<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      html {
        /* font-size: 12px; */
      }
      body {
        background-color: gray;
      }
      div {
        width: 400px;
        height: 400px;
        border: 2px solid black;
        font-size: 40px;
        /* 设置背景颜色，默认是背景透明transparent */
        background-color: skyblue;
      }
      /* rem是相对根html元素的font-size的倍数 */
      span.divrem {
        width: 10rem;
        height: 10rem;
        background-color: orange;
        /* font-size: 1rem; */
        font-size: 12px;
        text-indent: 2em;
        display: inline-block;
      }
      img {
        width: 100px;
      }
    </style>
  </head>
  <body>
    <div>我爱我家！</div>
    <span class="divrem"
      >rem根元素rem根元素rem根元素rem根元素rem根元素rem根元素rem根元素rem根元素rem根元素rem根元素rem根元素rem根元素rem根元素</span
    >
    <img src="./images/logo" alt="" />
  </body>
</html>
